﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Pharmacy_management_system
{
    public partial class JianYanXiangXiJieGuo : Form
    {
        public JianYanXiangXiJieGuo()
        {
            InitializeComponent();
        }

        private void JianYanXiangXiJieGuo_Load(object sender, EventArgs e)
        {
            string strsql = "exec [Get_exam_detail] '" + DangQianHang.aa + "','" + DangQianHang.bb + "'";
            SqlConnection conn = new SqlConnection(SQL.constr);
            conn.Open();
            SqlDataAdapter dh = new SqlDataAdapter(strsql, SQL.constr);
            DataSet dt1 = new DataSet();
            dh.Fill(dt1);
            this.dataGridView1.DataSource = dt1.Tables[0].DefaultView;
            conn.Close();
        }
    }
}
